package org.easy.rocketmq.dto;

import lombok.Data;

@Data
public abstract class AbstractMessage implements IMessage {

    /**
     * 唯一标识 用于mq队列消息搜索
     */
    protected String key;

    /**
     *
     */
    protected String tag;

    /**
     * 延迟时间
     */
    protected Long delay;


    @Override
    public abstract String getBusinessUniqueId();

    @Override
    public abstract Long getBizId();

    @Override
    public abstract Integer getBizType();
}
